package com.diyizu.youdianda;

import com.github.jeffreyning.mybatisplus.conf.EnableMPP;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication
//@ServletComponentScan   //开启Servlet组件扫描: 自动扫描@WebServlet,@WebFilter,@WebListener注解
//自动注册Servlet相关组件
@EnableTransactionManagement    //开启事务管理
@EnableMPP  //开启mybatisPlus-plus的支持
public class YouDianDaApplication {
    public static void main(String[] args) {
        SpringApplication.run(YouDianDaApplication.class);
        log.info("优点达启动...");
    }
}
